session flush laravel

52

session flush laravel -

// Forget a single key...
$request->session()->forget('name');
// Forget multiple keys...
$request->session()->forget(['name', 'status']);

$request->session()->flush();

laravel destroy session -

# ref: https://laravel.io/forum/02-06-2014-session-destroy

Session::forget('yourKeyGoesHere') // Removes a specific variable

session variable in laravel -

$request->session()->put('key','value');

Comments

Submit
0 Comments